package com.akuhome.resource.util;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.Random;

public class UidBuilder {
    public static String build(){
        StringBuilder sb = new StringBuilder();
        LocalDateTime date = LocalDateTime.now();
        DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("yyyyMMddHHmmss");
        String dateStr = date.format(dateTimeFormatter);
        sb.append(dateStr);
        Random random = new Random();
        sb.append(random.nextInt(10000));
        return sb.toString();
    }
}
